#ifndef _OLED_H
#define _OLED_H

/*抽象出OLED的行为*/
typedef int (*oled_start_fn_t)(void *self,void *contnet);  // 开始显示
typedef int (*oled_up_fn_t)(void *self);     // 显示上一个内容
typedef int (*oled_down_fn_t)(void *self);   // 显示下一个内容
typedef int (*oled_stop_fn_t)(void *self);   // 结束显示
typedef int (*oled_clear_fn_t)(void *self);  // 清屏

struct oled_i
{
    oled_start_fn_t start_oled;
    oled_up_fn_t    up_oled;
    oled_down_fn_t  down_oled;
    oled_stop_fn_t  stop_oled;
    oled_clear_fn_t clear_oled;
};


#endif